package com.xszx.server.mapper;

import com.xszx.server.dto.Page;
import com.xszx.server.entity.Chapter;
import com.xszx.server.entity.Resource;
import com.xszx.server.entity.User;

import java.util.List;

public interface UserMapper {

    //查询全部的大章
    List<User> findAll(Page page);

    List<Resource> findResourcesByUserId(String userId);

    //统计当前表中的数据条数
    int findCount();

    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    User selectByLoginName(String loginName);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}
